package com.springcloud.service;


import com.baomidou.mybatisplus.service.IService;
import com.springcloud.commons.utils.PageInfo;
import com.springcloud.model.SysRole;

import java.util.List;
import java.util.Map;

/**
 *
 * SysRole 表数据服务层接口
 *
 */
public interface ISysRoleService extends IService<SysRole> {

	List<Long> selectRoleIdListByUserId(Long userId);

    List<Map<Long, String>> selectRoleResourceListByRoleId(Long roleId);

    void selectDataGrid(PageInfo pageInfo);

    Object selectTree();

    List<Long> selectResourceIdListByRoleId(Long id);

    void updateRoleResource(Long id, String resourceIds);

}